﻿using CTP.CRM.Core.Common.Enums;

namespace CTP.CRM.Application.Dtos.Demo
{
    public class ValidateExecuteInput
    {
        /// <summary>
        /// 操作类型
        /// </summary>
        public OptionType Option { get; set; }

        /// <summary>
        /// 主键编号
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 雪花ID
        /// </summary>
        public long SnowId { get; set; }

        /// <summary>
        /// 登录账号
        /// </summary>
        public string LoginName { get; set; }

        /// <summary>
        /// 登录密码
        /// </summary>
        public string? PassWord { get; set; }

        /// <summary>
        /// 登录密码确认
        /// </summary>
        public string PassWordAgain { get; set; }

        /// <summary>
        /// 最大金额额度
        /// </summary>
        public decimal TotalQuota { get; set; }

        /// <summary>
        /// 最大数量
        /// </summary>
        public int MaxCount { get; set; }

        /// <summary>
        /// 最小数量
        /// </summary>
        public int MiniCount { get; set; }

        /// <summary>
        /// 用户信息
        /// </summary>
        public UserInfoInput UserInfoInput { get; set; }

        /// <summary>
        /// 用户角色
        /// </summary>
        public List<UserRoleInput> UserRoleInputList { get; set; }

    }

    public class UserInfoInput
    {
        /// <summary>
        /// 生日
        /// </summary>
        public DateTime BirthDay { get; set; }

        /// <summary>
        /// qq号码
        /// </summary>
        public string QQ { get; set; }

        /// <summary>
        /// 电子邮箱
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 用户姓名
        /// </summary>
        public string UserName { get; set; }
    }


    public class UserRoleInput
    {
        /// <summary>
        /// 角色编号
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 角色名称
        /// </summary>
        public string Name { get; set; }
    }
}
